<div class="row">
  <div class="col-xs-12">

    <%= render partial:  'common/nav', locals: {show_tab: :index, model_nav_name: :admin_process_active_instance, pjax: true} %>

    <%= form_for 'ProcessActiveInstance', url: admin_process_active_instances_destroy_multi_path, method: :post do %>
    <button class="btn btn-minier btn-danger" type="submit"><i class="icon-trash"></i> <%= t 'common.delete_multi' %></button>
    <div id="admin_process_active_instances">
      <%= grid(@process_active_instances, show_filters: :when_filtered) do |g|
      g.action_column param_name: :select_ids, object_property: :id
      g.column name: "#{t 'activerecord.attributes.defaults.id'}", attribute: 'id', filter: false, ordering: true


      g.column name: "#{t 'activerecord.attributes.process_active_instance.active_type'}", attribute: 'active_type'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.bpmn_active_define_id'}", attribute: 'bpmn_active_define_id'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.bpmn_active_name'}", attribute: 'bpmn_active_name'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.bpmn_next_target_ref'}", attribute: 'bpmn_next_target_ref'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.due_date'}", attribute: 'due_date'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.duration'}", attribute: 'duration'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.start_date'}", attribute: 'start_date'



      g.column name: "#{t 'activerecord.attributes.process_active_instance.status'}", attribute: 'status'



        g.column  do |c|
          grid_operator(:admin_process_active_instance_path, c.id)
        end
      end %>
    </div>

    <% end %>
  </div>
</div>

<script>
    $(function () {
        $('.nav.nav-list li.active').removeClass('active');
        $('.nav.nav-list li[data-model="process_active_instance_list"]').addClass('active');
    } );
</script>